<!DOCTYPE html>
<html lang="en-US">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>PA 环境</title>
    <meta name="generator" content="VuePress 1.9.9">
    <link href="https://cdn.jsdelivr.net/npm/@docsearch/css@alpha" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/@docsearch/js@alpha"></script>
    <meta name="description" content="">
    
    <link rel="preload" href="/my-note/assets/css/0.styles.6007a078.css" as="style"><link rel="preload" href="/my-note/assets/js/app.57cc677e.js" as="script"><link rel="preload" href="/my-note/assets/js/4.e47306be.js" as="script"><link rel="preload" href="/my-note/assets/js/1.48f7700a.js" as="script"><link rel="preload" href="/my-note/assets/js/16.d95b4dc2.js" as="script"><link rel="prefetch" href="/my-note/assets/js/10.46acd53e.js"><link rel="prefetch" href="/my-note/assets/js/11.fe88a43b.js"><link rel="prefetch" href="/my-note/assets/js/12.48f4874d.js"><link rel="prefetch" href="/my-note/assets/js/13.23aed4ea.js"><link rel="prefetch" href="/my-note/assets/js/14.df97c0c0.js"><link rel="prefetch" href="/my-note/assets/js/15.f24e80d9.js"><link rel="prefetch" href="/my-note/assets/js/17.75e0c72c.js"><link rel="prefetch" href="/my-note/assets/js/18.c3530f0f.js"><link rel="prefetch" href="/my-note/assets/js/19.7e2b6798.js"><link rel="prefetch" href="/my-note/assets/js/20.2c5cc0c8.js"><link rel="prefetch" href="/my-note/assets/js/21.cdd9522e.js"><link rel="prefetch" href="/my-note/assets/js/22.d092f66f.js"><link rel="prefetch" href="/my-note/assets/js/23.0c445dc8.js"><link rel="prefetch" href="/my-note/assets/js/24.955d42c4.js"><link rel="prefetch" href="/my-note/assets/js/25.bc3fab3a.js"><link rel="prefetch" href="/my-note/assets/js/26.fdb157a6.js"><link rel="prefetch" href="/my-note/assets/js/27.8dd07a3b.js"><link rel="prefetch" href="/my-note/assets/js/28.38ca7c9c.js"><link rel="prefetch" href="/my-note/assets/js/29.e9495e42.js"><link rel="prefetch" href="/my-note/assets/js/3.04dff26a.js"><link rel="prefetch" href="/my-note/assets/js/30.adee5af1.js"><link rel="prefetch" href="/my-note/assets/js/31.da43303d.js"><link rel="prefetch" href="/my-note/assets/js/32.9aed0f05.js"><link rel="prefetch" href="/my-note/assets/js/33.827d2ad3.js"><link rel="prefetch" href="/my-note/assets/js/34.fca2e8d8.js"><link rel="prefetch" href="/my-note/assets/js/5.7044c00d.js"><link rel="prefetch" href="/my-note/assets/js/6.2d88e74d.js"><link rel="prefetch" href="/my-note/assets/js/7.bbf0a4a6.js"><link rel="prefetch" href="/my-note/assets/js/8.b0ccbd7f.js"><link rel="prefetch" href="/my-note/assets/js/9.f3dabe1a.js">
    <link rel="stylesheet" href="/my-note/assets/css/0.styles.6007a078.css">
  </head>
  <body>
    <div id="app" data-server-rendered="true"><div class="theme-container no-sidebar" data-v-7dd95ae2><div data-v-7dd95ae2><div class="password-shadow password-wrapper-out" style="display:none;" data-v-59e6cb88 data-v-7dd95ae2 data-v-7dd95ae2><h3 class="title" data-v-59e6cb88></h3> <p class="description" data-v-59e6cb88></p> <label id="box" class="inputBox" data-v-59e6cb88><input type="password" value="" data-v-59e6cb88> <span data-v-59e6cb88>Konck! Knock!</span> <button data-v-59e6cb88>OK</button></label> <div class="footer" data-v-59e6cb88><span data-v-59e6cb88><i class="iconfont reco-theme" data-v-59e6cb88></i> <a target="blank" href="https://vuepress-theme-reco.recoluan.com" data-v-59e6cb88>vuePress-theme-reco</a></span> <span data-v-59e6cb88><i class="iconfont reco-copyright" data-v-59e6cb88></i> <a data-v-59e6cb88><!---->
          
        <!---->
        2023
      </a></span></div></div> <div class="hide" data-v-7dd95ae2><header class="navbar" data-v-7dd95ae2><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/my-note/" class="home-link router-link-active"></a> <div class="links"><div class="color-picker"><a class="color-button"><i class="iconfont reco-color"></i></a> <div class="color-picker-menu" style="display:none;"><div class="mode-options"><h4 class="title">Choose mode</h4> <ul class="color-mode-options"><li class="dark">dark</li><li class="auto active">auto</li><li class="light">light</li></ul></div></div></div> <div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/my-note/" class="nav-link"><i class="undefined"></i>
  Home
</a></div><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title"><i class="undefined"></i>
      Code
    </span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/my-note/code/vuepress-first/" class="nav-link"><i class="undefined"></i>
  vuepress-first
</a></li><li class="dropdown-item"><!----> <a href="/my-note/code/github-gitee/" class="nav-link"><i class="undefined"></i>
  github-gitee
</a></li><li class="dropdown-item"><!----> <a href="/my-note/code/create-ssh-key-github-to-gitee/" class="nav-link"><i class="undefined"></i>
  create-ssh-key-github-to-gitee
</a></li><li class="dropdown-item"><!----> <a href="/my-note/code/Algolia-full-search/" class="nav-link"><i class="undefined"></i>
  Algolia-full-search
</a></li><li class="dropdown-item"><!----> <a href="/my-note/code/dependencies-inject/" class="nav-link"><i class="undefined"></i>
  dependencies-inject
</a></li><li class="dropdown-item"><!----> <a href="/my-note/project/email/" class="nav-link"><i class="undefined"></i>
  project
</a></li></ul></div></div><div class="nav-item"><a href="/my-note/life/" class="nav-link"><i class="undefined"></i>
  Life
</a></div><div class="nav-item"><a href="/my-note/Car/" class="nav-link"><i class="undefined"></i>
  Car
</a></div><div class="nav-item"><a href="/my-note/note/" class="nav-link"><i class="undefined"></i>
  Note
</a></div><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title"><i class="undefined"></i>
      pa-note
    </span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/my-note/pa-note/1-env/" class="nav-link"><i class="undefined"></i>
  1-env
</a></li><li class="dropdown-item"><!----> <a href="/my-note/pa-note/2-env/" class="nav-link"><i class="undefined"></i>
  2-env
</a></li><li class="dropdown-item"><!----> <a href="/my-note/pa-note/3-pa-env/" class="nav-link"><i class="undefined"></i>
  3-pa-env
</a></li></ul></div></div><div class="nav-item"><a href="/my-note/problem/" class="nav-link"><i class="undefined"></i>
  Problem
</a></div> <!----></nav></div></header> <div class="sidebar-mask" data-v-7dd95ae2></div> <aside class="sidebar" data-v-7dd95ae2><div class="personal-info-wrapper" data-v-1fad0c41 data-v-7dd95ae2><!----> <!----> <div class="num" data-v-1fad0c41><div data-v-1fad0c41><h3 data-v-1fad0c41>20</h3> <h6 data-v-1fad0c41>Articles</h6></div> <div data-v-1fad0c41><h3 data-v-1fad0c41>0</h3> <h6 data-v-1fad0c41>Tags</h6></div></div> <ul class="social-links" data-v-1fad0c41></ul> <hr data-v-1fad0c41></div> <nav class="nav-links"><div class="nav-item"><a href="/my-note/" class="nav-link"><i class="undefined"></i>
  Home
</a></div><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title"><i class="undefined"></i>
      Code
    </span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/my-note/code/vuepress-first/" class="nav-link"><i class="undefined"></i>
  vuepress-first
</a></li><li class="dropdown-item"><!----> <a href="/my-note/code/github-gitee/" class="nav-link"><i class="undefined"></i>
  github-gitee
</a></li><li class="dropdown-item"><!----> <a href="/my-note/code/create-ssh-key-github-to-gitee/" class="nav-link"><i class="undefined"></i>
  create-ssh-key-github-to-gitee
</a></li><li class="dropdown-item"><!----> <a href="/my-note/code/Algolia-full-search/" class="nav-link"><i class="undefined"></i>
  Algolia-full-search
</a></li><li class="dropdown-item"><!----> <a href="/my-note/code/dependencies-inject/" class="nav-link"><i class="undefined"></i>
  dependencies-inject
</a></li><li class="dropdown-item"><!----> <a href="/my-note/project/email/" class="nav-link"><i class="undefined"></i>
  project
</a></li></ul></div></div><div class="nav-item"><a href="/my-note/life/" class="nav-link"><i class="undefined"></i>
  Life
</a></div><div class="nav-item"><a href="/my-note/Car/" class="nav-link"><i class="undefined"></i>
  Car
</a></div><div class="nav-item"><a href="/my-note/note/" class="nav-link"><i class="undefined"></i>
  Note
</a></div><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title"><i class="undefined"></i>
      pa-note
    </span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/my-note/pa-note/1-env/" class="nav-link"><i class="undefined"></i>
  1-env
</a></li><li class="dropdown-item"><!----> <a href="/my-note/pa-note/2-env/" class="nav-link"><i class="undefined"></i>
  2-env
</a></li><li class="dropdown-item"><!----> <a href="/my-note/pa-note/3-pa-env/" class="nav-link"><i class="undefined"></i>
  3-pa-env
</a></li></ul></div></div><div class="nav-item"><a href="/my-note/problem/" class="nav-link"><i class="undefined"></i>
  Problem
</a></div> <!----></nav> <!----> </aside> <div class="password-shadow password-wrapper-in" style="display:none;" data-v-59e6cb88 data-v-7dd95ae2><h3 class="title" data-v-59e6cb88></h3> <!----> <label id="box" class="inputBox" data-v-59e6cb88><input type="password" value="" data-v-59e6cb88> <span data-v-59e6cb88>Konck! Knock!</span> <button data-v-59e6cb88>OK</button></label> <div class="footer" data-v-59e6cb88><span data-v-59e6cb88><i class="iconfont reco-theme" data-v-59e6cb88></i> <a target="blank" href="https://vuepress-theme-reco.recoluan.com" data-v-59e6cb88>vuePress-theme-reco</a></span> <span data-v-59e6cb88><i class="iconfont reco-copyright" data-v-59e6cb88></i> <a data-v-59e6cb88><!---->
          
        <!---->
        2023
      </a></span></div></div> <div data-v-7dd95ae2><div data-v-7dd95ae2><main class="page"><section style="display:;"><div class="page-title"><h1 class="title">PA 环境</h1> <div data-v-8a445198><!----> <!----> <i class="iconfont reco-eye" data-v-8a445198><span id="/my-note/pa-note/3-pa-env.html" data-flag-title="Your Article Title" class="leancloud-visitors" data-v-8a445198><a class="leancloud-visitors-count" style="font-size:.9rem;font-weight:normal;color:#999;"></a></span></i> <!----></div></div> <div class="theme-reco-content content__default"><h1 id="pa-环境"><a href="#pa-环境" class="header-anchor">#</a> PA 环境</h1> <h2 id="软件依赖"><a href="#软件依赖" class="header-anchor">#</a> 软件依赖</h2> <div class="language-shell line-numbers-mode"><pre class="language-shell"><code><span class="token function">apt-get</span> <span class="token function">install</span> build-essential    <span class="token comment"># build-essential packages, include binary utilities, gcc, make, and so on</span>

<span class="token function">apt-get</span> <span class="token function">install</span> <span class="token function">man</span>                <span class="token comment"># on-line reference manual</span>

<span class="token function">apt-get</span> <span class="token function">install</span> gcc-doc            <span class="token comment"># on-line reference manual for gcc</span>

<span class="token function">apt-get</span> <span class="token function">install</span> gdb                <span class="token comment"># GNU debugger</span>

<span class="token function">apt-get</span> <span class="token function">install</span> <span class="token function">git</span>                <span class="token comment"># revision control system</span>

<span class="token function">apt-get</span> <span class="token function">install</span> libreadline-dev    <span class="token comment"># a library used later</span>

<span class="token function">apt-get</span> <span class="token function">install</span> libsdl2-dev        <span class="token comment"># a library used later</span>

<span class="token function">apt-get</span> <span class="token function">install</span> llvm llvm-dev      <span class="token comment"># llvm project, which contains libraries used later</span>

<span class="token function">apt-get</span> <span class="token function">install</span> llvm-11 llvm-11-dev <span class="token comment"># only for ubuntu20.04</span>
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br><span class="line-number">14</span><br><span class="line-number">15</span><br><span class="line-number">16</span><br><span class="line-number">17</span><br></div></div><p>常见错误:</p> <h2 id="下载源码"><a href="#下载源码" class="header-anchor">#</a> 下载源码</h2> <div class="language-shell line-numbers-mode"><pre class="language-shell"><code>
<span class="token builtin class-name">cd</span> ~

<span class="token function">git</span> clone <span class="token parameter variable">-b</span> <span class="token number">2022</span> git@github.com:NJU-ProjectN/ics-pa.git ics2022

<span class="token function">git</span> config <span class="token parameter variable">--global</span> user.name <span class="token string">&quot;211220000-Zhang San&quot;</span> <span class="token comment"># your student ID and name</span>
<span class="token function">git</span> config <span class="token parameter variable">--global</span> user.email <span class="token string">&quot;zhangsan@foo.com&quot;</span>   <span class="token comment"># your email</span>
<span class="token function">git</span> config <span class="token parameter variable">--global</span> core.editor <span class="token function">vim</span>                 <span class="token comment"># your favorite editor</span>
<span class="token function">git</span> config <span class="token parameter variable">--global</span> color.ui <span class="token boolean">true</span>

<span class="token function">git</span> branch <span class="token parameter variable">-m</span> master
<span class="token function">bash</span> init.sh nemu
<span class="token function">bash</span> init.sh abstract-machine

<span class="token builtin class-name">source</span> ~/.bashrc 

<span class="token builtin class-name">echo</span> <span class="token variable">$NEMU_HOME</span>
<span class="token comment"># /home/such/ics2022/nemu</span>
<span class="token builtin class-name">echo</span> <span class="token variable">$AM_HOME</span>
<span class="token comment"># /home/such/ics2022/abstract-machine</span>
<span class="token builtin class-name">cd</span> <span class="token variable">$NEMU_HOME</span>
<span class="token builtin class-name">cd</span> <span class="token variable">$AM_HOME</span>

</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br><span class="line-number">14</span><br><span class="line-number">15</span><br><span class="line-number">16</span><br><span class="line-number">17</span><br><span class="line-number">18</span><br><span class="line-number">19</span><br><span class="line-number">20</span><br><span class="line-number">21</span><br><span class="line-number">22</span><br><span class="line-number">23</span><br></div></div><p>常见错误：[E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages(./2-env.md)</p> <h2 id="pa0-启动"><a href="#pa0-启动" class="header-anchor">#</a> PA0 启动</h2> <div class="language-shell line-numbers-mode"><pre class="language-shell"><code>
<span class="token builtin class-name">cd</span> ics2022

<span class="token function">git</span> branch

<span class="token function">git</span> checkout <span class="token parameter variable">-b</span> pa0

<span class="token function">vim</span> ics2022/Makefile
<span class="token comment"># 修改下面的变量</span>
<span class="token comment"># STUID = 211220000  # your student ID</span>
<span class="token comment"># STUNAME = 张三     # your Chinese name</span>

<span class="token function">git</span> <span class="token function">diff</span>
<span class="token function">git</span> <span class="token function">add</span> <span class="token builtin class-name">.</span>
<span class="token function">git</span> commit
<span class="token function">git</span> log
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br><span class="line-number">14</span><br><span class="line-number">15</span><br><span class="line-number">16</span><br></div></div><h2 id="编译-nemu"><a href="#编译-nemu" class="header-anchor">#</a> 编译 nemu</h2> <div class="language-shell line-numbers-mode"><pre class="language-shell"><code>
<span class="token builtin class-name">cd</span> /home/such/ics2022/nemu
<span class="token function">make</span> menuconfig
<span class="token function">make</span>
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br></div></div><h3 id="启动成功"><a href="#启动成功" class="header-anchor">#</a> 启动成功</h3> <p><img src="/my-note/assets/img/env-4.efbf875e.png" alt="env-4.png"></p> <h3 id="报错1"><a href="#报错1" class="header-anchor">#</a> 报错1</h3> <div class="language-shell line-numbers-mode"><pre class="language-shell"><code>/home/such/ics2022/nemu/scripts/config.mk:20: Warning: .config does not exists<span class="token operator">!</span>
/home/such/ics2022/nemu/scripts/config.mk:21: To build the project, first run <span class="token string">'make menuconfig'</span><span class="token builtin class-name">.</span>
+ YACC build/parser.tab.h
make<span class="token punctuation">[</span><span class="token number">1</span><span class="token punctuation">]</span>: bison: No such <span class="token function">file</span> or directory
make<span class="token punctuation">[</span><span class="token number">1</span><span class="token punctuation">]</span>: *** <span class="token punctuation">[</span>Makefile:27: build/parser.tab.h<span class="token punctuation">]</span> Error <span class="token number">127</span>
make: *** <span class="token punctuation">[</span>/home/such/ics2022/nemu/scripts/config.mk:39: /home/such/ics2022/nemu/tools/kconfig/build/mconf<span class="token punctuation">]</span> Error <span class="token number">2</span>
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br></div></div><p>上面的 Warning 不用理会</p> <p>第4行说明缺少依赖：<strong>bison</strong></p> <p>解决方案：</p> <div class="language-shell line-numbers-mode"><pre class="language-shell"><code><span class="token function">sudo</span> <span class="token function">apt-get</span> <span class="token function">install</span> bison
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><h3 id="报错2"><a href="#报错2" class="header-anchor">#</a> 报错2</h3> <div class="language-shell line-numbers-mode"><pre class="language-shell"><code>/home/such/ics2022/nemu/scripts/config.mk:20: Warning: .config does not exists<span class="token operator">!</span>
/home/such/ics2022/nemu/scripts/config.mk:21: To build the project, first run <span class="token string">'make menuconfig'</span><span class="token builtin class-name">.</span>
+ YACC build/parser.tab.h
+ LEX build/lexer.lex.c
make<span class="token punctuation">[</span><span class="token number">1</span><span class="token punctuation">]</span>: flex: No such <span class="token function">file</span> or directory
make<span class="token punctuation">[</span><span class="token number">1</span><span class="token punctuation">]</span>: *** <span class="token punctuation">[</span>Makefile:23: build/lexer.lex.c<span class="token punctuation">]</span> Error <span class="token number">127</span>
make: *** <span class="token punctuation">[</span>/home/such/ics2022/nemu/scripts/config.mk:39: /home/such/ics2022/nemu/tools/kconfig/build/mconf<span class="token punctuation">]</span> Error <span class="token number">2</span>```
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br></div></div><p>上面的 Warning 不用理会</p> <p>第4行说明缺少依赖：<strong>flex</strong></p> <p>解决方案：</p> <div class="language-shell line-numbers-mode"><pre class="language-shell"><code><span class="token function">sudo</span> <span class="token function">apt-get</span> <span class="token function">install</span> flex
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><h2 id="配置-vim"><a href="#配置-vim" class="header-anchor">#</a> 配置 VIM</h2> <h2 id="配置-gdb"><a href="#配置-gdb" class="header-anchor">#</a> 配置 GDB</h2> <p>参考: <a href="https://nju-projectn.github.io/ics-pa-gitbook/ics2022/0.6.html" target="_blank" rel="noopener noreferrer">Getting Source Code for PAs<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></p></div></section> <footer class="page-edit"><!----> <!----></footer> <!----> <div class="comments-wrapper"><!----></div></main></div> <!----></div> <ul class="sub-sidebar sub-sidebar-wrapper" style="width:12rem;" data-v-b57cc07c data-v-7dd95ae2><li class="level-2" data-v-b57cc07c><a href="/my-note/pa-note/3-pa-env.html#软件依赖" class="sidebar-link reco-side-软件依赖" data-v-b57cc07c>软件依赖</a></li><li class="level-2" data-v-b57cc07c><a href="/my-note/pa-note/3-pa-env.html#下载源码" class="sidebar-link reco-side-下载源码" data-v-b57cc07c>下载源码</a></li><li class="level-2" data-v-b57cc07c><a href="/my-note/pa-note/3-pa-env.html#pa0-启动" class="sidebar-link reco-side-pa0-启动" data-v-b57cc07c>PA0 启动</a></li><li class="level-2" data-v-b57cc07c><a href="/my-note/pa-note/3-pa-env.html#编译-nemu" class="sidebar-link reco-side-编译-nemu" data-v-b57cc07c>编译 nemu</a></li><li class="level-3" data-v-b57cc07c><a href="/my-note/pa-note/3-pa-env.html#启动成功" class="sidebar-link reco-side-启动成功" data-v-b57cc07c>启动成功</a></li><li class="level-3" data-v-b57cc07c><a href="/my-note/pa-note/3-pa-env.html#报错1" class="sidebar-link reco-side-报错1" data-v-b57cc07c>报错1</a></li><li class="level-3" data-v-b57cc07c><a href="/my-note/pa-note/3-pa-env.html#报错2" class="sidebar-link reco-side-报错2" data-v-b57cc07c>报错2</a></li><li class="level-2" data-v-b57cc07c><a href="/my-note/pa-note/3-pa-env.html#配置-vim" class="sidebar-link reco-side-配置-vim" data-v-b57cc07c>配置 VIM</a></li><li class="level-2" data-v-b57cc07c><a href="/my-note/pa-note/3-pa-env.html#配置-gdb" class="sidebar-link reco-side-配置-gdb" data-v-b57cc07c>配置 GDB</a></li></ul></div></div></div><div class="global-ui"><div class="back-to-ceiling" style="right:1rem;bottom:6rem;width:2.5rem;height:2.5rem;border-radius:.25rem;line-height:2.5rem;display:none;" data-v-c6073ba8 data-v-c6073ba8><svg t="1574745035067" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5404" class="icon" data-v-c6073ba8><path d="M526.60727968 10.90185116a27.675 27.675 0 0 0-29.21455937 0c-131.36607665 82.28402758-218.69155461 228.01873535-218.69155402 394.07834331a462.20625001 462.20625001 0 0 0 5.36959153 69.94390903c1.00431239 6.55289093-0.34802892 13.13561351-3.76865779 18.80351572-32.63518765 54.11355614-51.75690182 118.55860487-51.7569018 187.94566865a371.06718723 371.06718723 0 0 0 11.50484808 91.98906777c6.53300375 25.50556257 41.68394495 28.14064038 52.69160883 4.22606766 17.37162448-37.73630017 42.14135425-72.50938081 72.80769204-103.21549295 2.18761121 3.04276886 4.15646224 6.24463696 6.40373557 9.22774369a1871.4375 1871.4375 0 0 0 140.04691725 5.34970492 1866.36093723 1866.36093723 0 0 0 140.04691723-5.34970492c2.24727335-2.98310674 4.21612437-6.18497483 6.3937923-9.2178004 30.66633723 30.70611158 55.4360664 65.4791928 72.80769147 103.21549355 11.00766384 23.91457269 46.15860503 21.27949489 52.69160879-4.22606768a371.15156223 371.15156223 0 0 0 11.514792-91.99901164c0-69.36717486-19.13165746-133.82216804-51.75690182-187.92578088-3.42062944-5.66790279-4.76302748-12.26056868-3.76865837-18.80351632a462.20625001 462.20625001 0 0 0 5.36959269-69.943909c-0.00994388-166.08943902-87.32547796-311.81420293-218.6915546-394.09823051zM605.93803103 357.87693858a93.93749974 93.93749974 0 1 1-187.89594924 6.1e-7 93.93749974 93.93749974 0 0 1 187.89594924-6.1e-7z" p-id="5405" data-v-c6073ba8></path><path d="M429.50777625 765.63860547C429.50777625 803.39355007 466.44236686 1000.39046097 512.00932183 1000.39046097c45.56695499 0 82.4922232-197.00623328 82.5015456-234.7518555 0-37.75494459-36.9345906-68.35043303-82.4922232-68.34111062-45.57627738-0.00932239-82.52019037 30.59548842-82.51086798 68.34111062z" p-id="5406" data-v-c6073ba8></path></svg></div></div></div>
    <script src="/my-note/assets/js/app.57cc677e.js" defer></script><script src="/my-note/assets/js/4.e47306be.js" defer></script><script src="/my-note/assets/js/1.48f7700a.js" defer></script><script src="/my-note/assets/js/16.d95b4dc2.js" defer></script>
  </body>
</html>
